#ifndef HUD_SKILL_H
#define HUD_SKILL_H
#include "../core/screen.h"
class sprite;
class hud_skill : public screen{
protected:
    sprite *icon_ = nullptr;
    float precent_ = 0.0f;
public:
    static hud_skill* createHubSkill(node* parent,const char* path,const char* name = "hud_skill",
        glm::vec2 pos = glm::vec2(0.0f),float scale = 1.0f,Anchor anchor = Anchor::ANCHOR_CENTER);

    virtual void render() override;
    
    void setPrecent(float precent);
    float getPrecent(){ return precent_;};
    void setIcon(sprite* icon){ icon_ = icon;};
    sprite* getIcon(){ return icon_;};
};

#endif // hud_skill_H